package org.example.model;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel(description = "商品实体")
public class Product {
    @ApiModelProperty(value = "商品ID", example = "1")
    private Long id;

    @ApiModelProperty(value = "商品名称", example = "iPhone 14", required = true)
    private String name;

    @ApiModelProperty(value = "商品价格", example = "6999.99", required = true)
    private BigDecimal price;

    @ApiModelProperty(value = "商品库存", example = "100", required = true)
    private Integer stock;

    @ApiModelProperty(value = "商品描述", example = "最新款苹果手机")
    private String description;

    @ApiModelProperty(value = "商品类别", example = "电子产品")
    private String category;
} 